/*在页面中，存储一个token，用于验证
* */
$(document).ajaxSend(function (e,xhr,opt){
    var user_token = localStorage.getItem("user_token");
    xhr.setRequestHeader("user_token",user_token);
});


// 实现用户退出功能
function logout(){
    //删除掉token即可
    localStorage.removeItem("user_token");
    location.href = "blog_login.html";
}
